package com.zytech.zspider.task.impl.http;

import org.apache.http.client.HttpClient;

/**
 * @author siuming
 */
final class HttpClientHolder {

    private static final ThreadLocal<HttpClient> BINDINGS = new ThreadLocal<HttpClient>();

    /**
     * @return
     */
    static HttpClient get() {
        return BINDINGS.get();
    }

    /**
     * @param httpClient
     */
    static void set(HttpClient httpClient) {
        BINDINGS.set(httpClient);
    }

    private HttpClientHolder() {
    }
}
